package com.coocaa.ops.api.v1.internal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coocaa.ops.common.core.biz.policygroup.entity.PolicyGroupChipModelConfigEntity;

import java.util.List;

/**
 * @author tangminghong
 * @date 2020-08-11
 */
public interface IPolicyCacheMapper extends BaseMapper<PolicyGroupChipModelConfigEntity> {

    /**
     * 请求最近更新的两个版本
     * @param policyId
     * @return
     */
    List<PolicyGroupChipModelConfigEntity> getDeviceByPolicyIdForLastTwoVersion(Integer policyId);
}
